package me.huha.commons;

import java.io.Serializable;

import me.huha.client.EmailUtils;

/**
 * @Title: SendEmailDTO.java
 * @Author: Yepx
 * @mail: yepx2013@gmail.com
 * @CreateTime: 2017年9月29日 上午11:40:36
 * @Todo: 发送邮件的信息体
 */
public class SendEmailDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 邮件工具类 */
	private EmailUtils emailUtils;
	/** 邮件唯一标识符 */
	private String uuid;
	/** 发件人 */
	private AddressDTO from;
	/** 收件人，抄送人，密送人 */
	private ToCcBccAddressDTO toCcBccAddress; 
	/** 邮件主题 */
	private String messageTitle; 
	/** 邮件内容 */
	private String messageContent; 
	/** 邮件图片 */
	private String imgJsonArr; 
	/** 邮件附件 */
	private String fileJsonArr;
	/** 扩展字段 */
	private String extendJsonStr;
	/** 重试次数 */
	private Integer retryNum = 1;
	
	public SendEmailDTO(EmailUtils emailUtils, String uuid,AddressDTO from, ToCcBccAddressDTO toCcBccAddress, String messageTitle,
			String messageContent, String imgJsonArr, String fileJsonArr, String extendJsonStr) {
		super();
		this.emailUtils = emailUtils;
		this.uuid = uuid;
		this.from = from;
		this.toCcBccAddress = toCcBccAddress;
		this.messageTitle = messageTitle;
		this.messageContent = messageContent;
		this.imgJsonArr = imgJsonArr;
		this.fileJsonArr = fileJsonArr;
		this.extendJsonStr = extendJsonStr;
	}
	
	
	public AddressDTO getFrom() {
		return from;
	}
	public void setFrom(AddressDTO from) {
		this.from = from;
	}
	public EmailUtils getEmailUtils() {
		return emailUtils;
	}
	public void setEmailUtils(EmailUtils emailUtils) {
		this.emailUtils = emailUtils;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public ToCcBccAddressDTO getToCcBccAddress() {
		return toCcBccAddress;
	}
	public void setToCcBccAddress(ToCcBccAddressDTO toCcBccAddress) {
		this.toCcBccAddress = toCcBccAddress;
	}
	public String getMessageTitle() {
		return messageTitle;
	}
	public void setMessageTitle(String messageTitle) {
		this.messageTitle = messageTitle;
	}
	public String getMessageContent() {
		return messageContent;
	}
	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}
	public String getImgJsonArr() {
		return imgJsonArr;
	}
	public void setImgJsonArr(String imgJsonArr) {
		this.imgJsonArr = imgJsonArr;
	}
	public String getFileJsonArr() {
		return fileJsonArr;
	}
	public void setFileJsonArr(String fileJsonArr) {
		this.fileJsonArr = fileJsonArr;
	}
	public Integer getRetryNum() {
		return retryNum;
	}
	public void setRetryNum(Integer retryNum) {
		this.retryNum = retryNum;
	}
	public String getExtendJsonStr() {
		return extendJsonStr;
	}
	public void setExtendJsonStr(String extendJsonStr) {
		this.extendJsonStr = extendJsonStr;
	}
}
